//
//  MJViewController.m
//  01.文件下载
//
//  Created by apple on 14-4-29.
//  Copyright (c) 2014年 itcast. All rights reserved.
//

#import "MJViewController.h"
#import "FileDownload.h"

@interface MJViewController ()
@property (nonatomic, strong) FileDownload *download;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end

@implementation MJViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.download = [[FileDownload alloc] init];
    [self.download downloadFileWithURL:[NSURL URLWithString:@"http://s6.51cto.com/wyfs01/M01/10/63/wKioJlHm6ZiQcNvyAAZZhSPdwzs163.jpg"] completion:^(UIImage *image) {
        
        self.imageView.image = image;
    }];
}

@end
